#include "NetworkCreatTask.h"

NetworkCreatTask::NetworkCreatTask(arma::mat data, NetworkBase* networkCreator, QObject* parent):
    QObject(parent),
    data(data),
    networkCreator(networkCreator)
{
    setAutoDelete(true);  // 自动删除任务对象
}

NetworkCreatTask::~NetworkCreatTask()
{
    networkCreator = nullptr;
}

void NetworkCreatTask::run(){
    emit send_singleTrialNetwork(networkCreator->networkCreat(data));
}
